<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        
<title>Memory Price WEB 1.0 (SOAP/WSDL Cliente)</title>

<style>
    table, th, tr
    {
        border: 1px solid black;
        text-align:center;
        padding:10px;
    }
    h2,h5,div
    {
      text-align:center;  
    }
 </style>

 <script type="text/javascript">

function trocarTipoUnidade(sessao)
{
    alert("aqui");   
}

 </script>
         
         
    </head>
       
    <body>
        

    <h2>Registro de preco via (SOAP/WSDL)</h2>
    <br/>

    <form name="clienteSOAP" method="POST" action="./GravarHistoricoPreco">

    <% 

        String comboLocal = (String) request.getAttribute("comboLocal"); 
        String comboItem = (String) request.getAttribute("comboItem"); 
        String tipoUnidade = (String) request.getAttribute("tipoUnidade"); 
        String idSessao = (String) request.getAttribute("idSessaoUsuario");
    %>
            
            
        <input type="hidden" name="idSessaoRegistro" value="<%= idSessao %>"/>

         <center>
               <table style="text-align:center">
                   <tr><td>Local:</td><td><%= comboLocal %></td></tr>
                   <tr><td>Item:</td><td><%= comboItem %></td></tr>
                   <tr>
                       <td>Valor:</td>
                       <td><input type="text" id="valor" name="valor"
                           value="1.0"/>
                       </td>
                   </tr>
                   <tr>
                       <td>Qtd em <b> ( <%= tipoUnidade %> )</b>:
                       </td>
                       <td><input type="text" id="qtd" value="1" name='qtd'/>
                       </td>
                   </tr>
                   <tr>
                       <td></td>
                       <td><input id="botaoGravarPreco" type="button" 
                   onclick="window.document.forms[0].submit();" 
                   value="Memorizar Preco"/>
                       </td>
                   </tr>
               </table>
         </center>
            
        </form>
        
        <br/>
          
    </body>
</html>
